package ${package.infrastructure}.persistence.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
<#list table.importPackages as pkg>
    <#if pkg?contains("mybatisplus")>
    <#else>
import ${pkg};
    </#if>
</#list>
<#if idType == "AUTO">
import ${package.common}.base.AutoBasePO;
<#elseif idType == "ASSIGN_UUID">
import ${package.common}.base.UuidBasePO;
<#else>
import ${package.common}.base.SnowflakeBasePO;
</#if>
import lombok.Getter;
import lombok.Setter;

/**
 * ${table.comment!}持久化对象
 *
 * @author ${author}
 * @since ${date}
 */
@Getter
@Setter
@TableName(value = "${table.name?upper_case}")
public class ${entity}PO extends <#if idType == "AUTO">AutoBasePO<#elseif idType == "ASSIGN_UUID">UuidBasePO<#else>SnowflakeBasePO</#if> {
<#list table.fields as field>
    <#if field.keyFlag>
    <#-- 普通字段 -->
    <#else>

    /**
     * ${field.comment}
     */
    <#if field.fill??>
    <#-- -----   存在字段填充设置   ----->
        <#if field.convert>
    @TableField(value = "${field.annotationColumnName}", fill = FieldFill.${field.fill})
        <#else>
    @TableField(fill = FieldFill.${field.fill})
        </#if>
    <#else>
    @TableField("${field.annotationColumnName}")
    private ${field.propertyType} ${field.propertyName};
    </#if>
    </#if>
</#list>
}
